<template>
  <div>
    <h3>Home: {{ count }}</h3>
    <el-button @click="store.commit('increment')" type="primary">+1</el-button>
  </div>
</template>
<script setup lang="ts">
import { computed } from '@vue/reactivity'
import { useStore } from 'vuex'

const store = useStore()
const count = computed(() => {
  return store.state.count
})
</script>
